#include "Sample.h"

Sample::Sample(void)
{
	
}

Sample::~Sample(void)
{

}

bool	Sample::Init()
{
	m_object.Init();
	if(!m_object.LoadFile(_T("st02_SC00.ASE")))
	{
		return false;
	}
	int a = 0;
	//m_Camera.InIt();
	/*m_Camera.CreateWorldMatrix();
	m_Camera.CreateViewMatrix( D3DXVECTOR3( 0.0f, 100.0f, -100.0f), D3DXVECTOR3( 0.0f, 0.0f, 0.0f ) );
	m_Camera.CreateProjecTionMatrix();*/
	return true;
}

bool	Sample::Render()
{
	m_object.Render();
	return true;
}

bool	Sample::Frame()
{
	m_object.Frame();
	return true;
}

bool	Sample::Release()
{
	m_object.Release();
	return true;
}

INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR, INT )
{
	Sample gSample;
	if( !gSample.CreateWin(hInst,_T("SampleAseBox")))
	{
		return 0;
	}
	if( !gSample.CreateDevice())
	{
		return 0;
	}
	gSample.Run();
	return 1;
}